package com.test.practice.oo.abstractAndInterface;

public abstract class Bird {
	public void fly() {
		System.out.println("小鸟飞");
	}

	ShoutAbility ability;

	public void shout() {
		ability.shout();
	}

	public Bird(ShoutAbility ability) {
		this.ability = ability;
	}

	public abstract void attack();
}
